[LINUX][BLK] front: More care over device teardown.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 14 Jun 2006 10:19:53 +0000 (11:19 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 14 Jun 2006 10:19:53 +0000 (11:19 +0100)
commitbe252f5f66e6ca2a7755a004361685ec341b7089
treed889195be2d62f21d3ad09d00bfd096e9b207437
parent00dc8b3bf1c13ed371db56e770d9db8a9e333b54
[LINUX][BLK] front: More care over device teardown.
 1. We must ensure gnttab callbacks are disabled and all work
    flushed before tearing down device state. A new gnttab interface
    call is added for this purpose.
 2. blkif_free() must check for a request_queue before deref'ing it.
Signed-off-by: Keir Fraser <keir@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c
linux-2.6-xen-sparse/drivers/xen/core/gnttab.c
linux-2.6-xen-sparse/include/xen/gnttab.h